package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterSensitiveDao;
import com.vf.admin.miaodong.entity.AppSensitive;
import com.vf.admin.miaodong.service.AfterSensitiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 敏感词
 */
@Service
public class AfterSensitiveServiceImpl implements AfterSensitiveService {
    @Autowired
    AfterSensitiveDao  afterSensitiveDao;

    /**
     * 详情
     */
    @Override
    public AppSensitive get(Integer id) {
        return afterSensitiveDao.get(id);
    }

    /**
     * 添加/修改
     */
    @Override
    public void save(AppSensitive appSensitive) {
        afterSensitiveDao.save(appSensitive);
    }

    /**
     * 删除
     */
    @Override
    public void del(Integer id) {
        afterSensitiveDao.del(id);
    }

    /**
     * 综合查询
     * @param map
     * @param bean
     * @return
     */
    @Override
    public List<AppSensitive> findList(Map<String, Object> map, SplitPageBean bean) {
        return afterSensitiveDao.findList(map,bean);
    }
}
